﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x020002F3 RID: 755
	public class TIndexColName : TParseTreeNode
	{
		// Token: 0x170005EF RID: 1519
		// (set) Token: 0x06001A8E RID: 6798 RVA: 0x0032E1BA File Offset: 0x0032C3BA
		private TSourceToken SortTypeByToken
		{
			set
			{
				if (value == null)
				{
					return;
				}
				if (value.astext.Equals("asc", StringComparison.CurrentCultureIgnoreCase))
				{
					this.sortType = ESortType.asc;
					return;
				}
				if (value.astext.Equals("desc", StringComparison.CurrentCultureIgnoreCase))
				{
					this.sortType = ESortType.desc;
				}
			}
		}

		// Token: 0x06001A8F RID: 6799 RVA: 0x0032E1F5 File Offset: 0x0032C3F5
		public override void init(object arg1)
		{
			this.columnName = (TObjectName)arg1;
		}

		// Token: 0x06001A90 RID: 6800 RVA: 0x0032E203 File Offset: 0x0032C403
		public override void init(object arg1, object arg2)
		{
			this.init(arg1);
			if (arg2 != null)
			{
				this.SortTypeByToken = (TSourceToken)arg2;
			}
		}

		// Token: 0x170005F0 RID: 1520
		// (get) Token: 0x06001A91 RID: 6801 RVA: 0x0032E21B File Offset: 0x0032C41B
		// (set) Token: 0x06001A92 RID: 6802 RVA: 0x0032E223 File Offset: 0x0032C423
		public virtual TObjectName ColumnName
		{
			get
			{
				return this.columnName;
			}
			set
			{
				this.columnName = value;
			}
		}

		// Token: 0x170005F1 RID: 1521
		// (get) Token: 0x06001A93 RID: 6803 RVA: 0x0032E22C File Offset: 0x0032C42C
		// (set) Token: 0x06001A94 RID: 6804 RVA: 0x0032E234 File Offset: 0x0032C434
		public virtual TConstant Length
		{
			get
			{
				return this.length;
			}
			set
			{
				this.length = value;
			}
		}

		// Token: 0x170005F2 RID: 1522
		// (get) Token: 0x06001A95 RID: 6805 RVA: 0x0032E23D File Offset: 0x0032C43D
		// (set) Token: 0x06001A96 RID: 6806 RVA: 0x0032E245 File Offset: 0x0032C445
		public virtual ESortType SortType
		{
			get
			{
				return this.sortType;
			}
			set
			{
				this.sortType = value;
			}
		}

		// Token: 0x06001A97 RID: 6807 RVA: 0x0032E24E File Offset: 0x0032C44E
		public override void init(object arg1, object arg2, object arg3)
		{
			this.init(arg1);
			this.length = (TConstant)arg2;
			if (arg3 != null)
			{
				this.SortTypeByToken = (TSourceToken)arg3;
			}
		}

		// Token: 0x040019A9 RID: 6569
		private TObjectName columnName;

		// Token: 0x040019AA RID: 6570
		private TConstant length;

		// Token: 0x040019AB RID: 6571
		private ESortType sortType;
	}
}
